/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

export const tableOption = {
  border: true,
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  addBtn: true,
  column: [
	  {
      label: '版本类型',
      prop: 'manageType',
      dicUrl: '/admin/dict/type/version_type',
      type: 'select',
      button: true
    },
	  {
      label: '版本号',
      prop: 'version'
    },
	  {
      label: '设备数量',
      prop: 'deviceNum',
      addDisplay: false,
      editDisplay: false
    },
	  {
      label: '文件大小kb',
      prop: 'fileSize',
      addDisplay: false,
      editDisplay: false
    },
	  {
      label: '发布时间',
      prop: 'publishTime',
      type: 'datetime',
      addDisplay: false,
      editDisplay: false
    },
	  {
      label: '紧急发布',
      prop: 'emergencyRelease',
      dicUrl: '/admin/dict/type/urgent_release',
      type: 'radio',
      button: true
    },
	  {
      label: '发布失败',
      prop: 'publishFail',
      addDisplay: false,
      editDisplay: false
    },
	  {
      label: '下载',
      prop: 'download',
      placeholder: '请上传 附件',
      type: 'upload',
      oss: 'ali',
      loadText: '附件上传中，请稍等',
      span: 24,
      slot: true
    },
	  {
      label: '复制链接',
      prop: 'downloadLink',
      addDisplay: false,
      editDisplay: false,
      slot: true
    },
	  {
      label: '更新内容',
      prop: 'updateLog',
      type: 'textarea'
    },
  ]
}
